package com.ruoyi.wisdom.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wisdom.mapper.IotPickTemperatureRecordMapper;
import com.ruoyi.wisdom.domain.IotPickTemperatureRecord;
import com.ruoyi.wisdom.service.IIotPickTemperatureRecordService;

/**
 * 实时识别记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-08
 */
@Service
public class IotPickTemperatureRecordServiceImpl implements IIotPickTemperatureRecordService 
{
    @Autowired
    private IotPickTemperatureRecordMapper iotPickTemperatureRecordMapper;

    /**
     * 查询实时识别记录
     * 
     * @param temperatureId 实时识别记录主键
     * @return 实时识别记录
     */
    @Override
    public IotPickTemperatureRecord selectIotPickTemperatureRecordByTemperatureId(Long temperatureId)
    {
        return iotPickTemperatureRecordMapper.selectIotPickTemperatureRecordByTemperatureId(temperatureId);
    }

    /**
     * 查询实时识别记录列表
     * 
     * @param iotPickTemperatureRecord 实时识别记录
     * @return 实时识别记录
     */
    @Override
    public List<IotPickTemperatureRecord> selectIotPickTemperatureRecordList(IotPickTemperatureRecord iotPickTemperatureRecord)
    {
        return iotPickTemperatureRecordMapper.selectIotPickTemperatureRecordList(iotPickTemperatureRecord);
    }

    /**
     * 新增实时识别记录
     * 
     * @param iotPickTemperatureRecord 实时识别记录
     * @return 结果
     */
    @Override
    public int insertIotPickTemperatureRecord(IotPickTemperatureRecord iotPickTemperatureRecord)
    {
        return iotPickTemperatureRecordMapper.insertIotPickTemperatureRecord(iotPickTemperatureRecord);
    }

    /**
     * 修改实时识别记录
     * 
     * @param iotPickTemperatureRecord 实时识别记录
     * @return 结果
     */
    @Override
    public int updateIotPickTemperatureRecord(IotPickTemperatureRecord iotPickTemperatureRecord)
    {
        return iotPickTemperatureRecordMapper.updateIotPickTemperatureRecord(iotPickTemperatureRecord);
    }

    /**
     * 批量删除实时识别记录
     * 
     * @param temperatureIds 需要删除的实时识别记录主键
     * @return 结果
     */
    @Override
    public int deleteIotPickTemperatureRecordByTemperatureIds(Long[] temperatureIds)
    {
        return iotPickTemperatureRecordMapper.deleteIotPickTemperatureRecordByTemperatureIds(temperatureIds);
    }

    /**
     * 删除实时识别记录信息
     * 
     * @param temperatureId 实时识别记录主键
     * @return 结果
     */
    @Override
    public int deleteIotPickTemperatureRecordByTemperatureId(Long temperatureId)
    {
        return iotPickTemperatureRecordMapper.deleteIotPickTemperatureRecordByTemperatureId(temperatureId);
    }
}
